//
// Created by lingzhitech on 25-11-5.
//

#include <iostream>
#include <vector>
std::vector<int>* allocateVector() {
    return new std::vector<int>;
}

void assignVector(std::vector<int>* v) {
    std::cout << "输入你想要的数字：";
    int i;
    while (std::cin >> i) {
        v->push_back(i);
    }
}

void printVector(std::vector<int>* v) {
    std::cout << "该vector中包含的int：";
    for (auto i: *v) {
        std::cout << i << " ";
    }
    std::cout << std::endl;
}

int main() {
    auto p = allocateVector();
    assignVector(p);
    printVector(p);
}